package com.cqfae.deploycentral.app.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by JIANGLU009 on 2017/11/8.
 */
@Component
@ConfigurationProperties(prefix = "syncFile")
public class FileSyncInfo {

    private String uploadRootPath;

    private String uploadRootCachePath;

    private String uploadBackRootPath;

    private String syncPath;

    @Value("${jenkins.callBackHost}")
    private String callBackHost;

    private String callBackMethod;

    @Value("${jenkins.env}")
    private String env;

    public String getUploadRootPath() {
        return uploadRootPath;
    }

    public void setUploadRootPath(String uploadRootPath) {
        this.uploadRootPath = uploadRootPath;
    }

    public String getUploadBackRootPath() {
        return uploadBackRootPath;
    }

    public void setUploadBackRootPath(String uploadBackRootPath) {
        this.uploadBackRootPath = uploadBackRootPath;
    }

    public String getSyncPath() {
        return syncPath;
    }

    public void setSyncPath(String syncPath) {
        this.syncPath = syncPath;
    }

    public String getCallBackHost() {
        return callBackHost;
    }

    public void setCallBackHost(String callBackHost) {
        this.callBackHost = callBackHost;
    }

    public String getCallBackMethod() {
        return callBackMethod;
    }

    public void setCallBackMethod(String callBackMethod) {
        this.callBackMethod = callBackMethod;
    }

    public String getEnv() {
        return env;
    }

    public void setEnv(String env) {
        this.env = env;
    }

    public String getUploadRootCachePath() {
        return uploadRootCachePath;
    }

    public void setUploadRootCachePath(String uploadRootCachePath) {
        this.uploadRootCachePath = uploadRootCachePath;
    }
}
